<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>种植品信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/acq/plantinfo/acqPlantInfo/">种植品信息列表</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="acqPlantInfo" action="${ctx}/acq/plantinfo/acqPlantInfo/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>名称：</label><form:input path="acqPlantName" htmlEscape="false" maxlength="50" class="input-medium"/>
		<label>户主：</label><form:input path="fName" htmlEscape="false" maxlength="50" class="input-medium"/>
		<label>录入人：</label><form:input path="cName" htmlEscape="false" maxlength="50" class="input-medium"/>
	<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<td>户主</td>
				<td>录入人</td>
				<td>名称</td>
				<td>产品等级</td>
					    <td>面积</td>
						<td>产量</td>
						<td>录入时间</td>
						<td>预采时间</td>
						<td>必采时间</td>
				<shiro:hasPermission name="acq:plantinfo:acqPlantInfo:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="acqPlantInfo">
			<tr>
				<td>${acqPlantInfo.fName}</td>
				<td>${acqPlantInfo.cName}</td>
				<td>${acqPlantInfo.acqPlantName}</td>
				<td>${fns:getDictLabel(acqPlantInfo.level, 'acq_level', '')}</td>
				<td>${acqPlantInfo.scale}亩</td>
				<td>${acqPlantInfo.esOutput}公斤</td>
				<td>  <fmt:formatDate  value='${acqPlantInfo.createDate}' pattern='yyyy-MM-dd HH:mm:ss' /></td>
				<td><fmt:formatDate  value='${acqPlantInfo.ycDate}' pattern='yyyy-MM-dd' /></td>
					<td><fmt:formatDate  value='${acqPlantInfo.bcDate}' pattern='yyyy-MM-dd' /></td>
				<shiro:hasPermission name="acq:plantinfo:acqPlantInfo:edit"><td>
    				<a href="${ctx}/acq/plantinfo/acqPlantInfo/form?id=${acqPlantInfo.id}">修改</a>
					<a href="${ctx}/acq/plantinfo/acqPlantInfo/delete?id=${acqPlantInfo.id}" onclick="return confirmx('确认要删除该种植品信息吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>